@layout("/common/_curd/_container.html"){

<script type="text/javascript">
	var ctx = "${basePath}";
	var grid_selector = "#grid-table";
	var pager_selector = "#grid-pager";
	
	$(function(){
		initGrid();
		initMenuBtn("btns", "${code}");
	});
	
	function initGrid(){
		var grid_url = ctx + "/${code}/list";
		var _colnames = ["", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						"", 
						""];
		var _colmodel = [{name:"id", index:"id", width:100},
						{name:"db_source_id", index:"db_source_id", width:100},
						{name:"patient_name", index:"patient_name", width:100},
						{name:"queue_type_id", index:"queue_type_id", width:100},
						{name:"register_id", index:"register_id", width:100},
						{name:"queue_num", index:"queue_num", width:100},
						{name:"sub_queue_order", index:"sub_queue_order", width:100},
						{name:"sub_queue_type", index:"sub_queue_type", width:100},
						{name:"pager_id", index:"pager_id", width:100},
						{name:"doctor_id", index:"doctor_id", width:100},
						{name:"call_time", index:"call_time", width:100},
						{name:"is_priority", index:"is_priority", width:100},
						{name:"return_flag", index:"return_flag", width:100},
						{name:"is_display", index:"is_display", width:100},
						{name:"time_interval", index:"time_interval", width:100},
						{name:"fre_date", index:"fre_date", width:100},
						{name:"opr_time", index:"opr_time", width:100},
						{name:"content", index:"content", width:100},
						{name:"state_custom", index:"state_custom", width:100},
						{name:"patient_id", index:"patient_id", width:100},
						{name:"queue_type_source_id", index:"queue_type_source_id", width:100},
						{name:"start_time", index:"start_time", width:100},
						{name:"state_patient", index:"state_patient", width:100},
						{name:"call_count", index:"call_count", width:100},
						{name:"source_id", index:"source_id", width:100},
						{name:"delay_time", index:"delay_time", width:100},
						{name:"operator_type", index:"operator_type", width:100},
						{name:"parent_id", index:"parent_id", width:100}];
		
		jQuery(grid_selector).jqGrid({
			url : grid_url,
		    shrinkToFit : true,
			colNames : _colnames,
			colModel : _colmodel, 
			jsonReader : {id :"id"},
			pager : pager_selector,
			postData : {sort : "id", order : "desc"}
		});
	}
</script>


	<!-- 配置 grid -->
	<div class="row">
		<div class="col-xs-12 tb-grid">
			<!-- 配置 查询 -->
			@ var _col=[
@		{name:"", index:"id", type:"text"},
			@		{name:"", index:"db_source_id", type:"text"},
			@		{name:"", index:"patient_name", type:"text"},
			@		{name:"", index:"queue_type_id", type:"text"},
			@		{name:"", index:"register_id", type:"text"},
			@		{name:"", index:"queue_num", type:"text"},
			@		{name:"", index:"sub_queue_order", type:"text"},
			@		{name:"", index:"sub_queue_type", type:"text"},
			@		{name:"", index:"pager_id", type:"text"},
			@		{name:"", index:"doctor_id", type:"text"},
			@		{name:"", index:"call_time", type:"text"},
			@		{name:"", index:"is_priority", type:"text"},
			@		{name:"", index:"return_flag", type:"text"},
			@		{name:"", index:"is_display", type:"text"},
			@		{name:"", index:"time_interval", type:"text"},
			@		{name:"", index:"fre_date", type:"text"},
			@		{name:"", index:"opr_time", type:"text"},
			@		{name:"", index:"content", type:"text"},
			@		{name:"", index:"state_custom", type:"text"},
			@		{name:"", index:"patient_id", type:"text"},
			@		{name:"", index:"queue_type_source_id", type:"text"},
			@		{name:"", index:"start_time", type:"text"},
			@		{name:"", index:"state_patient", type:"text"},
			@		{name:"", index:"call_count", type:"text"},
			@		{name:"", index:"source_id", type:"text"},
			@		{name:"", index:"delay_time", type:"text"},
			@		{name:"", index:"operator_type", type:"text"},
			@		{name:"", index:"parent_id", type:"text"}							
			@];
			@ include("/common/_function/_search.html",{"col":_col}){}
			<!-- 按钮 -->
			<div class="welljq well-sm" id="btns"></div>
			<!-- grid -->
			<table id="grid-table"></table>
			<!-- 分页-->
			<div id="grid-pager"></div>
		</div>
	</div>
	
	<!-- 引入所需的js -->
	@include("/common/_listscript.html"){}
	
@}	